{% load auth %}
<form method="post" action=".">
  {% if form.errors %}
  <div class="form-row">
    <div>{{ form.errors }}</div>
  </div>
  {% endif %}
  <div style="float:left;width:60%;">	
    <div class="fieldset" style="margin-right:10px;">
      <h1>Descrizione</h1>
      
      <div class="form-col">
	<div class="form-row" style="margin-right:5px;">
	  <label>{{ form.viewtype.label }}*</label>
	  <div>{{ form.viewtype }}</div>
	</div>
	
	<div class="form-row" style="margin-right:5px;">
	  <label>{{ form.status.label }}*</label>
	  <div>{{ form.status }}</div>
	</div>
	
	<div class="form-row" style="margin-right:5px;">
	  <label>{{ form.parent.label }}</label>
	  <div>{{ form.parent }}</div>
	</div>
      </div>
      
      <div class="form-row">
	<label>{{ form.name.label }}*</label>
	<div>{{ form.name }}</div>
      </div>
      
      <div class="form-row">
	<label class="textarea-label">{{ form.description.label }}</label>
	<div>{{ form.description }}</div>
      </div>
      
      <div class="form-row">
	<label>{{ form.order.label }}</label>
	<div>{{ form.order }}</div>
      </div>
    </div>
  </div>
  
  <div style="float:left;width:40%;">
    <div class="fieldset">
      <h1>SEO</h1>
      
      <div class="form-row">
	<label>{{ form.slug.label }}</label>
	<div>{{ form.slug }}</div>
      </div>
      
      <div class="form-row">
	<label>{{ form.pagetitle.label }}</label>
	<div>{{ form.pagetitle }}</div>
      </div>
      
      <div class="form-row">
	<label>{{ form.keywords.label }}</label>
	<div>{{ form.keywords }}</div>
      </div>
    </div>
    {% form_auth_box %}
      
  <div class="submit-row" style="clear:both">
    <input type="submit" value="{{title}}" />
  </div>
</form>
